'use strict';

const Service = require('egg').Service;
const Excel = require('exceljs');

class UploadService extends Service {
  async xls(file) {
    const workbook = new Excel.Workbook();
    await workbook.xlsx.readFile(file.filepath);
    console.log(workbook.worksheets[0].rowCount);
  }
}

module.exports = UploadService;
